<template>
	<view>
		<u-modal :show="maintenanceShow" :title="maintenanceTitle" :content='maintenanceContent' @confirm="maintenanceConfirm"></u-modal>
	</view>
</template>

<script>
	import {maintainApi} from '../../api/index.js'
	export default {
		data() {
			return {
				maintenanceShow: true,
				maintenanceTitle: '测试标题',
				maintenanceContent: '测试维护测试维护测试维护测试维护测试维护测试维护'
			};
		},
		computed: {

		},
		onLoad() {
		
		},
		methods: {
			//弹窗确认-关闭应用
			maintenanceConfirm() {
				uni.getSystemInfo({
					success: (res) => {
						if (res.platform === 'ios') {
							plus.ios.import("UIApplication").sharedApplication().performSelector("exit")
						} else {
							plus.runtime.quit()
						}
					}
				})
			},
			
			//获取维护信息
			async getMaintain(){
				try{
					const res = await maintainApi()
				}catch(e){
					//TODO handle the exception
				}
			},
		},
	};
</script>

<style>
</style>
